<include file="public:header" />

<div class="container">
<form action="{:U('promotion/actInputResult')}" method="post">
    <h4 class="webview-title">促销活动结果录入</h4>
	<div class="row">
		<div class="col-xs-12 webview-border" >
			<p class="text-center"><strong>物料：</strong></p>
		</div>
		<table class="table table-bordered">
			<thead>
				<tr>
					<th>项目</th>
					<th>工艺说明</th>
					<th>纸张</th>
					<th>规格</th>
					<th>单件数量</th>
					<th>单价</th>
					<th>总价</th>
					<th>使用数量</th>
				
				</tr>
			</thead>
			<tbody>
				<volist name="materials" id="m">
					<tr>
						<td>{$m.materialsProject}</td>
						<td>{$m.materialsTech}</td>
						<td>{$m.materialsPlpe}</td>
						<td>{$m.materialsGg}</td>
						<td>{$m.materialsSignNum}</td>
						<td>{$m.materialsSign}</td>
						<td>{$m.materialsCountMoney}</td>
						<td><input type="text" name="mater[{$m.id}][materialsUseNum]" value="{$m.materialsUseNum}" /></td>
						
                        <input type="hidden" name="mater[{$m.id}][materialsSign]" value="{$m.materialsSign}" />
					</tr>
				</volist>
			</tbody>
		</table>

		<p>&nbsp;</p>
		<div class="col-xs-12 webview-border" >
			<p class="text-center"><strong>礼品：</strong></p>
		</div>

		<table class="table table-bordered">
			<thead>
				<tr>
					<th>礼品名称</th>
					<th>单件数量</th>
					<th>单价</th>
					<th>总价</th>
					<th>使用数量</th>
				
				</tr>
			</thead>
			<tbody>
				<volist name="gift" id="g">
					<tr>
						<td>{$g.giftName}</td>
						<td>{$g.giftSignNum}</td>
						<td>{$g.giftSign}</td>
						<td>{$g.giftCountMoney}</td>
						<td><input type="text" name="gift[{$g.id}][giftUseNum]" value="{$g.giftUseNum}" /></td>
						
                        <input type="hidden" name="gift[{$g.id}][giftSign]" value="{$g.giftSign}" />
					</tr>
				</volist>
			</tbody>
		</table>
		<div class="container">
			<div class="form-group">
				<label for="actualSales">实际销售台数：</label>
				<input type="text" name="actualSales" id="actualSales"  value="{$main.actualSales}" class="form-control" placeholder="0">
			</div>
		</div>        
		<p>&nbsp;</p>
        <div class="col-xs-12" >
            <div class="row">
            <button type="submit" class="btn btn-primary btn-lg btn-block">录入</button>
            </div>
        </div>        
	</div>
</div>
<input type="hidden" name="id" value="{$id}" />
</form>

<include file="public:footer" />